<!--
Copyright The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<style>
 #vContainerDiv {
  position: absolute;
  top: 20px;
  overflow-y: scroll;
  width: 100px;
  height: 100px;
  visibility: hidden;
}

#vContentDiv {
  height: 200px;
}

#hContainerDiv {
  position: absolute;
  top: 20px;
  left: 200px;
  overflow-x: scroll;
  width: 100px;
  height: 100px;
  visibility: hidden;
}

#hContentDiv {
  width: 200px;
}
</style>
<div id="vContainerDiv">
 <div id="vContentDiv">
  Sample text
 </div>
</div>
<div id="hContainerDiv">
 <div id="hContentDiv">
  Sample text
 </div>
</div>